package com.eshop.modules.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.eshop.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "用户等级记录表", value = "YxUserLevel对象")
public class UserLevel extends BaseDomain {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("享受折扣")
    private Integer discount;
    @ApiModelProperty("会员等级")
    private Integer grade;
    @TableId(type = IdType.AUTO, value = "id")
    private Integer id;
    @ApiModelProperty("是否永久")
    private Integer isForever;
    @ApiModelProperty("等级vip")
    private Integer levelId;
    @ApiModelProperty("备注")
    private String mark;
    @ApiModelProperty("商户id")
    private Integer merId;
    @ApiModelProperty("是否已通知")
    private Integer remind;
    @ApiModelProperty("0:禁止,1:正常")
    private Integer status;
    @ApiModelProperty("用户uid")
    private Long uid;
    @ApiModelProperty("过期时间")
    private Integer validTime;

    public void setDiscount(Integer discount2) {
        this.discount = discount2;
    }

    public void setGrade(Integer grade2) {
        this.grade = grade2;
    }

    public void setId(Integer id2) {
        this.id = id2;
    }

    public void setIsForever(Integer isForever2) {
        this.isForever = isForever2;
    }

    public void setLevelId(Integer levelId2) {
        this.levelId = levelId2;
    }

    public void setMark(String mark2) {
        this.mark = mark2;
    }

    public void setMerId(Integer merId2) {
        this.merId = merId2;
    }

    public void setRemind(Integer remind2) {
        this.remind = remind2;
    }

    public void setStatus(Integer status2) {
        this.status = status2;
    }

    public void setUid(Long uid2) {
        this.uid = uid2;
    }

    public void setValidTime(Integer validTime2) {
        this.validTime = validTime2;
    }

    public String toString() {
        return "UserLevel(id=" + getId() + ", uid=" + getUid() + ", levelId=" + getLevelId() + ", grade=" + getGrade() + ", validTime=" + getValidTime() + ", isForever=" + getIsForever() + ", merId=" + getMerId() + ", status=" + getStatus() + ", mark=" + getMark() + ", remind=" + getRemind() + ", discount=" + getDiscount() + ")";
    }

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserLevel;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserLevel)) {
            return false;
        }
        UserLevel other = (UserLevel) o;
        if (!other.canEqual(this) || !UserLevel.super.equals(o)) {
            return false;
        }
        Integer this$id = getId();
        Integer other$id = other.getId();
        if (this$id != null ? !this$id.equals(other$id) : other$id != null) {
            return false;
        }
        Long this$uid = getUid();
        Long other$uid = other.getUid();
        if (this$uid != null ? !this$uid.equals(other$uid) : other$uid != null) {
            return false;
        }
        Integer this$levelId = getLevelId();
        Integer other$levelId = other.getLevelId();
        if (this$levelId != null ? !this$levelId.equals(other$levelId) : other$levelId != null) {
            return false;
        }
        Integer this$grade = getGrade();
        Integer other$grade = other.getGrade();
        if (this$grade != null ? !this$grade.equals(other$grade) : other$grade != null) {
            return false;
        }
        Integer this$validTime = getValidTime();
        Integer other$validTime = other.getValidTime();
        if (this$validTime != null ? !this$validTime.equals(other$validTime) : other$validTime != null) {
            return false;
        }
        Integer this$isForever = getIsForever();
        Integer other$isForever = other.getIsForever();
        if (this$isForever != null ? !this$isForever.equals(other$isForever) : other$isForever != null) {
            return false;
        }
        Integer this$merId = getMerId();
        Integer other$merId = other.getMerId();
        if (this$merId != null ? !this$merId.equals(other$merId) : other$merId != null) {
            return false;
        }
        Integer this$status = getStatus();
        Integer other$status = other.getStatus();
        if (this$status != null ? !this$status.equals(other$status) : other$status != null) {
            return false;
        }
        Integer this$remind = getRemind();
        Integer other$remind = other.getRemind();
        if (this$remind != null ? !this$remind.equals(other$remind) : other$remind != null) {
            return false;
        }
        Integer this$discount = getDiscount();
        Integer other$discount = other.getDiscount();
        if (this$discount != null ? !this$discount.equals(other$discount) : other$discount != null) {
            return false;
        }
        String this$mark = getMark();
        String other$mark = other.getMark();
        return this$mark != null ? this$mark.equals(other$mark) : other$mark == null;
    }

    public int hashCode() {
        int result = UserLevel.super.hashCode();
        Integer $id = getId();
        int i = result * 59;
        int hashCode = $id == null ? 43 : $id.hashCode();
        Long $uid = getUid();
        int i2 = (i + hashCode) * 59;
        int hashCode2 = $uid == null ? 43 : $uid.hashCode();
        Integer $levelId = getLevelId();
        int i3 = (i2 + hashCode2) * 59;
        int hashCode3 = $levelId == null ? 43 : $levelId.hashCode();
        Integer $grade = getGrade();
        int i4 = (i3 + hashCode3) * 59;
        int hashCode4 = $grade == null ? 43 : $grade.hashCode();
        Integer $validTime = getValidTime();
        int i5 = (i4 + hashCode4) * 59;
        int hashCode5 = $validTime == null ? 43 : $validTime.hashCode();
        Integer $isForever = getIsForever();
        int i6 = (i5 + hashCode5) * 59;
        int hashCode6 = $isForever == null ? 43 : $isForever.hashCode();
        Integer $merId = getMerId();
        int i7 = (i6 + hashCode6) * 59;
        int hashCode7 = $merId == null ? 43 : $merId.hashCode();
        Integer $status = getStatus();
        int i8 = (i7 + hashCode7) * 59;
        int hashCode8 = $status == null ? 43 : $status.hashCode();
        Integer $remind = getRemind();
        int i9 = (i8 + hashCode8) * 59;
        int hashCode9 = $remind == null ? 43 : $remind.hashCode();
        Integer $discount = getDiscount();
        int i10 = (i9 + hashCode9) * 59;
        int hashCode10 = $discount == null ? 43 : $discount.hashCode();
        String $mark = getMark();
        return ((i10 + hashCode10) * 59) + ($mark == null ? 43 : $mark.hashCode());
    }

    public Integer getId() {
        return this.id;
    }

    public Long getUid() {
        return this.uid;
    }

    public Integer getLevelId() {
        return this.levelId;
    }

    public Integer getGrade() {
        return this.grade;
    }

    public Integer getValidTime() {
        return this.validTime;
    }

    public Integer getIsForever() {
        return this.isForever;
    }

    public Integer getMerId() {
        return this.merId;
    }

    public Integer getStatus() {
        return this.status;
    }

    public String getMark() {
        return this.mark;
    }

    public Integer getRemind() {
        return this.remind;
    }

    public Integer getDiscount() {
        return this.discount;
    }
}
